package cn.itcast.nems.studentrecord.dao.mapper;

import cn.itcast.nems.studentrecord.dao.entity.JournalTransferLine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface JournalTransferLineMapper extends BaseMapper<JournalTransferLine> {

    /**
     * 查询转入班对应的凭单行ID
     *
     * @param studentRecordId 转入班学籍ID
     * @return 凭单行ID
     */
    String selectLineIdByJobStudentRecordId(@Param("studentRecordId") String studentRecordId);

    /**
     * 根据订单ID查询凭单行ID
     *
     * @param orderId 订单ID（就业班订单）
     * @return 凭单行ID
     */
    String selectLineIdByOrderId(@Param("orderId") String orderId);
}
